package cn.dapeng.designPatterns.chain.t02;

public class LengthProcessor implements Processor {
    @Override
    public boolean doFilter(Product product, ProcessorChain chain) {
        if (product.length >= 50 && product.length <= 100) {
            System.out.println("产品长度检验通过！");
            return chain.doFilter(product, chain);
        }
        System.out.println("产品长度未检验通过！");
        return false;
    }
}
